package com.uxhao.orderservice.service;

import com.uxhao.orderservice.entity.dashboard.OrderAndAmountVo;
import com.uxhao.orderservice.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.uxhao.orderservice.entity.dashboard.WeekDataVo;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author uxhao
 * @since 2022/01/22
 */
public interface TOrderService extends IService<TOrder> {

    String saveOrder(String courseId, String memberIdByJwtToken);

    OrderAndAmountVo countAllOrderAndAmount();

    WeekDataVo countCurrentOrderAndAmount();

    WeekDataVo countLastOrderAndAmount();
}
